package cn.zzh.sevice;

import cn.zzh.dao.AccDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AccServiceImp  implements AccService{
    @Autowired
    private AccDao accDao;


    @Override
    public void profit(String outAcc, String inAcc, Double money) {
        accDao.outAcc(outAcc,money);
        accDao.inAcc(inAcc,money);
    }
}
